

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class ChartType
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.String _TypeNameAR ="";
public System.String TypeNameAR
{
get { return _TypeNameAR;}
set { _TypeNameAR = value;}
}
System.String _TypeNameEN ="";
public System.String TypeNameEN
{
get { return _TypeNameEN;}
set { _TypeNameEN = value;}
}
System.Int64 _Weight =-1;
public System.Int64 Weight
{
get { return _Weight;}
set { _Weight = value;}
}
public ChartType()
{
}
public ChartType(System.String __TypeNameAR,System.String __TypeNameEN,System.Int64 __Weight)
{
_TypeNameAR = __TypeNameAR;
_TypeNameEN = __TypeNameEN;
_Weight = __Weight;
}
public ChartType(System.Int64 __ID,System.String __TypeNameAR,System.String __TypeNameEN,System.Int64 __Weight)
{
_ID = __ID;
_TypeNameAR = __TypeNameAR;
_TypeNameEN = __TypeNameEN;
_Weight = __Weight;
}


             public override bool Equals(object obj)
         {
             if (obj is ChartType)
             {
                 ChartType newObj = (ChartType)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
